﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.MovieRecorder.CUiMRCRibbonBarRecorderLabel
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.MovieRecorder;

public class CUiMRCRibbonBarRecorderLabel : 
  TxRibbonToolGroupElement,
  ITxRibbonToolGroupLabel,
  ITxRibbonToolGroupElement,
  IMRCRecorderRibbonToolGroupButton
{
  private string m_text;
  private string m_tooltip;
  private uint m_fontSize = 14;
  private string m_defaultText;

  public CUiMRCRibbonBarRecorderLabel(string text)
  {
    this.m_text = text;
    this.m_defaultText = text;
    this.m_tooltip = (string) null;
  }

  public uint FontSize => this.m_fontSize;

  public bool IsBold => true;

  public string Text
  {
    get => this.m_text;
    set
    {
      this.m_text = value;
      this.PostUpdateRequest();
    }
  }

  public uint Color => TxColor.TxColorWhite.RGB;

  public void Reset()
  {
    if (!(this.m_text != this.m_defaultText))
      return;
    this.m_text = this.m_defaultText;
    this.PostUpdateRequest();
  }
}
